<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/plugins/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/plugins/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/global.css" media="all">
    <script type="text/javascript" src="/plugins/layui/layui.js"></script>
    <title>时间维度编辑</title>
</head>
<body style="margin: 15px;">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>时间维度编辑(<label class="layui-required-tip">标红的为必填项</label>)</legend>
</fieldset>
<form class="layui-form" id="layui-form" action="/manage/lat/updatedimension" method="post">
    <div class="layui-form-item" style="display: none;">
        <label class="layui-form-label layui-required-tip" style="width: 10%;">ID：</label>
        <div class="layui-input-block">
            <input type="text" id="id" name="id" lay-verify="required"
                   style="width: 90%" autocomplete="off" class="layui-input" value="${tds.id!}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label layui-required-tip" style="width: 10%;">时间维度名称：</label>
        <div class="layui-input-block">
            <input type="text" id="dimensionName" name="dimensionName" maxlength="50" lay-verify="required"
                   style="width: 90%" autocomplete="off" class="layui-input" value="${tds.dimensionName!}">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="save">立即提交</button>
            <a class="layui-btn" href="/manage/lat/latpage">返回</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="/js/global-config.js"></script>
<script>
    layui.use(['jquery','form'],function(){
        var $=layui.jquery,form=layui.form;
        var $layer = $('#layui-form');
        //监听提交监听提交
        form.on('submit(save)', function(data){
            layer.confirm('确认要提交吗？', {
                btn : [ '确定', '取消' ]//按钮
            }, function(index) {
                $layer.submit();
                layer.close(index);
            });
            return false;
        });
    })
</script>
</body>
</html>